import java.io.*;
import java.net.*;
import java.util.*;
import java.util.Scanner;
/**
 * This program makes a socket connection to the atomic clock in Boulder, Colorado, and prints the
 * time that the server sends.
 * @version 1.20 2004-08-03
 * @author Cay Horstmann
 */
@SuppressWarnings("unused")
public class Client
{
   private static Scanner input;
private static PrintStream out;



	public static void main(String[] args)
	{ //201521123012
      try
      {
         Socket s = new Socket("192.168.1.207", 8080);
         try
         {
            InputStream inStream = s.getInputStream();
            Scanner in = new Scanner(System.in);
            PrintWriter out=new PrintWriter(s.getOutputStream());
            Scanner sc=new Scanner(System.in);
            String line1=sc.nextLine();
            out.println(line1);
            out.flush();
            while (in.hasNextLine())
            {
            
               String line = in.nextLine();
               System.out.println(line);
             
               
            }
         }
         finally
         {
            s.close();
         }
      }
      catch (IOException e)
      {
         e.printStackTrace();
      }
   }
}
